package com.qky.note.part4testjava;

import org.antlr.v4.runtime.ANTLRInputStream;
import org.antlr.v4.runtime.CommonTokenStream;
import org.antlr.v4.runtime.tree.ParseTree;
import org.antlr.v4.runtime.tree.ParseTreeWalker;

import java.io.IOException;

public class Translate {
    public static void main(String[] args) throws IOException {
        ANTLRInputStream input = new ANTLRInputStream(System.in);

        com.qky.note.part4testjava.ArrayInitLexer lexer = new ArrayInitLexer(input);

        CommonTokenStream tokens = new CommonTokenStream(lexer);

        com.qky.note.part4testjava.ArrayInitParser parser = new ArrayInitParser(tokens);

        ParseTree tree = parser.init();

        ParseTreeWalker walker = new ParseTreeWalker();

        ShortToUnicodeString shortToUnicodeString = new ShortToUnicodeString();

        walker.walk(new ShortToUnicodeString(), tree);

        System.out.println();

    }
}
